package com.hmy.uaa.bo.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
@ApiModel(value = "修改密码入参", description = "修改密码入参")
public class RestetPasswordRequest {

    @ApiModelProperty(value = "id")
    @NotNull
    private Long id;


    @Size(max = 16)
    @ApiModelProperty(value = "原密码", required = true)
    private String oldPassword;

    @NotBlank
    @Size(max = 16)
    @ApiModelProperty(value = "新密码", required = true)
    private String newPassword;
}
